﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main1.Master" AutoEventWireup="true" CodeBehind="Article.aspx.cs" Inherits="ProjectSem40701.Article" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="content_tab">
		<div class="content_tab_title"><span>Tin tức</span></div>
		<div class="content_tab1">
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" DataKeyNames="ArticleID" 
                DataSourceID="ObjectDataSource1" 
                onpageindexchanging="GridView1_PageIndexChanging" BorderStyle="None" 
                GridLines="None" ShowHeader="False">
                <RowStyle BorderStyle="None" />
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <table border="0" cellpadding="0" cellspacing="0" style="border-width: 0px; width: 100%">
                                <tr>
                                    <td align="left" style="padding-top: 5px; padding-left: 5px" valign="top">
                                        <asp:Label ID="lblTitle" runat="server" Font-Bold="True" Text='<%# Eval("ArticleTitle") %>' ForeColor="Red"></asp:Label>
                                    </td>
                                    <td align="left" style="padding-left: 5px; padding-top: 5px;" valign="top">
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td align="left" style="padding-top: 5px; padding-left: 5px" valign="top">
                                        <asp:Image ID="imgArticle" runat="server" 
                                            ImageUrl='<%# Eval("ArticleImage", "~/images/{0}") %>' 
                                            OnDataBinding="imgArticle_DataBinding" Width="160px" />
                                    </td>
                                    <td align="left" style="padding-left: 5px; padding-top: 5px;" valign="top">
                                        <asp:Label ID="lblDesc" runat="server" OnDataBinding="lblDesc_DataBinding" 
                                            Text='<%# Eval("ArticleDescription") %>'></asp:Label>
                                    </td>
                                </tr>
                                <tr style="border-width: 0px;">
                                    <td style="border-width: 0px;">
                                        &nbsp;
                                    </td>
                                    <td align="right" style="border-width: 0px; padding-right: 10px;">
                                        <span id="article-title">
                                            <asp:HyperLink ID="lblDetail" runat="server" NavigateUrl='<%# Eval("ArticleID", "ArticleDetail.aspx?ArticleID={0}") %>'>Chi 
                                        tiết »</asp:HyperLink>
                                        </span>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle BorderStyle="None" />
                <AlternatingRowStyle BorderStyle="None" />
            </asp:GridView>
		    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                OldValuesParameterFormatString="original_{0}" 
                SelectMethod="Get_tbl_Article_Select_Top4_Active_Tintuc" 
                TypeName="ProjectSem40701.MainDataset.ArticleTableAdapters.tbl_ArticleTableAdapter">
            </asp:ObjectDataSource>
		</div>
		</div>
</asp:Content>
